import request from '@/utils/request'

// 获取常量类
export function getSetUp(typeStr) {
    return request({
        url: `/api/v1/warehouse/setting/map`,
        method: 'GET',
    })
}
// 获取默认值
export function getSetUpData() {
    return request({
        url: `/api/v1/warehouse/tenant/config`,
        method: 'GET',
    })
}

// 设置
export function setSetUpRequest(urlType, params) {
    return request({
        url: `/api/v1/warehouse/setting/${urlType}/code`,
        method:'POST',
        data: params
    })
}